!(function (t, e) {
  "object" == typeof exports && "undefined" != typeof module
    ? (module.exports = e())
    : "function" == typeof define && define.amd
    ? define(e)
    : ((t =
        "undefined" != typeof globalThis ? globalThis : t || self).__MONJS__ =
        e());
})(this, function () {
  "use strict";
  var t = function () {
    return (
      (t =
        Object.assign ||
        function (t) {
          for (var e, n = 1, r = arguments.length; n < r; n++)
            for (var i in (e = arguments[n]))
              Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
          return t;
        }),
      t.apply(this, arguments)
    );
  };
  function e(t, e) {
    var n = {};
    for (var r in t)
      Object.prototype.hasOwnProperty.call(t, r) &&
        e.indexOf(r) < 0 &&
        (n[r] = t[r]);
    if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
      var i = 0;
      for (r = Object.getOwnPropertySymbols(t); i < r.length; i++)
        e.indexOf(r[i]) < 0 &&
          Object.prototype.propertyIsEnumerable.call(t, r[i]) &&
          (n[r[i]] = t[r[i]]);
    }
    return n;
  }
  var n = {},
    r = 10,
    i = 3800,
    o = "Script error.",
    s = /plugin/,
    a = !0,
    c = "badjs",
    u =
      "C82CF89CDAF6280CE7D1ABEF7F726E40BA8F8FEFBA70DD98E690CD3402136888A15E5BF6F73D855006D53126102B55736D3F3EC6F475A8036C6155A62A6EEADD2BB57F787DF4DBCCCFBE149451820352B216CF74A9524673A9030B662F2868B0641CF110DA389E1C42F23C434983501C845EE219E10FC26AE8DCD99551C0FB17",
    f =
      "undefined" != typeof globalThis
        ? globalThis
        : "undefined" != typeof window
        ? window
        : "undefined" != typeof global
        ? global
        : "undefined" != typeof self
        ? self
        : {};
  function l(t) {
    if (t.__esModule) return t;
    var e = t.default;
    if ("function" == typeof e) {
      var n = function t() {
        if (this instanceof t) {
          var n = [null];
          return n.push.apply(n, arguments), new (Function.bind.apply(e, n))();
        }
        return e.apply(this, arguments);
      };
      n.prototype = e.prototype;
    } else n = {};
    return (
      Object.defineProperty(n, "__esModule", { value: !0 }),
      Object.keys(t).forEach(function (e) {
        var r = Object.getOwnPropertyDescriptor(t, e);
        Object.defineProperty(
          n,
          e,
          r.get
            ? r
            : {
                enumerable: !0,
                get: function () {
                  return t[e];
                },
              }
        );
      }),
      n
    );
  }
  var h = {},
    p = {
      get exports() {
        return h;
      },
      set exports(t) {
        h = t;
      },
    };
  var d,
    v = {},
    y = {
      get exports() {
        return v;
      },
      set exports(t) {
        v = t;
      },
    },
    g = l(Object.freeze({ __proto__: null, default: {} }));
  function m() {
    return (
      d ||
        ((d = 1),
        (function (t, e) {
          var n;
          t.exports =
            ((n =
              n ||
              (function (t, e) {
                var n;
                if (
                  ("undefined" != typeof window &&
                    window.crypto &&
                    (n = window.crypto),
                  "undefined" != typeof self &&
                    self.crypto &&
                    (n = self.crypto),
                  "undefined" != typeof globalThis &&
                    globalThis.crypto &&
                    (n = globalThis.crypto),
                  !n &&
                    "undefined" != typeof window &&
                    window.msCrypto &&
                    (n = window.msCrypto),
                  !n && void 0 !== f && f.crypto && (n = f.crypto),
                  !n)
                )
                  try {
                    n = g;
                  } catch (t) {}
                var r = function () {
                    if (n) {
                      if ("function" == typeof n.getRandomValues)
                        try {
                          return n.getRandomValues(new Uint32Array(1))[0];
                        } catch (t) {}
                      if ("function" == typeof n.randomBytes)
                        try {
                          return n.randomBytes(4).readInt32LE();
                        } catch (t) {}
                    }
                    throw new Error(
                      "Native crypto module could not be used to get secure random number."
                    );
                  },
                  i =
                    Object.create ||
                    (function () {
                      function t() {}
                      return function (e) {
                        var n;
                        return (
                          (t.prototype = e),
                          (n = new t()),
                          (t.prototype = null),
                          n
                        );
                      };
                    })(),
                  o = {},
                  s = (o.lib = {}),
                  a = (s.Base = {
                    extend: function (t) {
                      var e = i(this);
                      return (
                        t && e.mixIn(t),
                        (e.hasOwnProperty("init") && this.init !== e.init) ||
                          (e.init = function () {
                            e.$super.init.apply(this, arguments);
                          }),
                        (e.init.prototype = e),
                        (e.$super = this),
                        e
                      );
                    },
                    create: function () {
                      var t = this.extend();
                      return t.init.apply(t, arguments), t;
                    },
                    init: function () {},
                    mixIn: function (t) {
                      for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
                      t.hasOwnProperty("toString") &&
                        (this.toString = t.toString);
                    },
                    clone: function () {
                      return this.init.prototype.extend(this);
                    },
                  }),
                  c = (s.WordArray = a.extend({
                    init: function (t, n) {
                      (t = this.words = t || []),
                        (this.sigBytes = n != e ? n : 4 * t.length);
                    },
                    toString: function (t) {
                      return (t || l).stringify(this);
                    },
                    concat: function (t) {
                      var e = this.words,
                        n = t.words,
                        r = this.sigBytes,
                        i = t.sigBytes;
                      if ((this.clamp(), r % 4))
                        for (var o = 0; o < i; o++) {
                          var s = (n[o >>> 2] >>> (24 - (o % 4) * 8)) & 255;
                          e[(r + o) >>> 2] |= s << (24 - ((r + o) % 4) * 8);
                        }
                      else
                        for (var a = 0; a < i; a += 4)
                          e[(r + a) >>> 2] = n[a >>> 2];
                      return (this.sigBytes += i), this;
                    },
                    clamp: function () {
                      var e = this.words,
                        n = this.sigBytes;
                      (e[n >>> 2] &= 4294967295 << (32 - (n % 4) * 8)),
                        (e.length = t.ceil(n / 4));
                    },
                    clone: function () {
                      var t = a.clone.call(this);
                      return (t.words = this.words.slice(0)), t;
                    },
                    random: function (t) {
                      for (var e = [], n = 0; n < t; n += 4) e.push(r());
                      return new c.init(e, t);
                    },
                  })),
                  u = (o.enc = {}),
                  l = (u.Hex = {
                    stringify: function (t) {
                      for (
                        var e = t.words, n = t.sigBytes, r = [], i = 0;
                        i < n;
                        i++
                      ) {
                        var o = (e[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
                        r.push((o >>> 4).toString(16)),
                          r.push((15 & o).toString(16));
                      }
                      return r.join("");
                    },
                    parse: function (t) {
                      for (var e = t.length, n = [], r = 0; r < e; r += 2)
                        n[r >>> 3] |=
                          parseInt(t.substr(r, 2), 16) << (24 - (r % 8) * 4);
                      return new c.init(n, e / 2);
                    },
                  }),
                  h = (u.Latin1 = {
                    stringify: function (t) {
                      for (
                        var e = t.words, n = t.sigBytes, r = [], i = 0;
                        i < n;
                        i++
                      ) {
                        var o = (e[i >>> 2] >>> (24 - (i % 4) * 8)) & 255;
                        r.push(String.fromCharCode(o));
                      }
                      return r.join("");
                    },
                    parse: function (t) {
                      for (var e = t.length, n = [], r = 0; r < e; r++)
                        n[r >>> 2] |=
                          (255 & t.charCodeAt(r)) << (24 - (r % 4) * 8);
                      return new c.init(n, e);
                    },
                  }),
                  p = (u.Utf8 = {
                    stringify: function (t) {
                      try {
                        return decodeURIComponent(escape(h.stringify(t)));
                      } catch (t) {
                        throw new Error("Malformed UTF-8 data");
                      }
                    },
                    parse: function (t) {
                      return h.parse(unescape(encodeURIComponent(t)));
                    },
                  }),
                  d = (s.BufferedBlockAlgorithm = a.extend({
                    reset: function () {
                      (this._data = new c.init()), (this._nDataBytes = 0);
                    },
                    _append: function (t) {
                      "string" == typeof t && (t = p.parse(t)),
                        this._data.concat(t),
                        (this._nDataBytes += t.sigBytes);
                    },
                    _process: function (e) {
                      var n,
                        r = this._data,
                        i = r.words,
                        o = r.sigBytes,
                        s = this.blockSize,
                        a = o / (4 * s),
                        u =
                          (a = e
                            ? t.ceil(a)
                            : t.max((0 | a) - this._minBufferSize, 0)) * s,
                        f = t.min(4 * u, o);
                      if (u) {
                        for (var l = 0; l < u; l += s)
                          this._doProcessBlock(i, l);
                        (n = i.splice(0, u)), (r.sigBytes -= f);
                      }
                      return new c.init(n, f);
                    },
                    clone: function () {
                      var t = a.clone.call(this);
                      return (t._data = this._data.clone()), t;
                    },
                    _minBufferSize: 0,
                  }));
                s.Hasher = d.extend({
                  cfg: a.extend(),
                  init: function (t) {
                    (this.cfg = this.cfg.extend(t)), this.reset();
                  },
                  reset: function () {
                    d.reset.call(this), this._doReset();
                  },
                  update: function (t) {
                    return this._append(t), this._process(), this;
                  },
                  finalize: function (t) {
                    return t && this._append(t), this._doFinalize();
                  },
                  blockSize: 16,
                  _createHelper: function (t) {
                    return function (e, n) {
                      return new t.init(n).finalize(e);
                    };
                  },
                  _createHmacHelper: function (t) {
                    return function (e, n) {
                      return new v.HMAC.init(t, n).finalize(e);
                    };
                  },
                });
                var v = (o.algo = {});
                return o;
              })(Math)),
            n);
        })(y)),
      v
    );
  }
  var w,
    _ = {},
    b = {
      get exports() {
        return _;
      },
      set exports(t) {
        _ = t;
      },
    };
  function x() {
    return (
      w ||
        ((w = 1),
        (function (t, e) {
          var n;
          t.exports =
            ((n = m()),
            (function () {
              var t = n,
                e = t.lib.WordArray;
              function r(t, n, r) {
                for (var i = [], o = 0, s = 0; s < n; s++)
                  if (s % 4) {
                    var a =
                      (r[t.charCodeAt(s - 1)] << ((s % 4) * 2)) |
                      (r[t.charCodeAt(s)] >>> (6 - (s % 4) * 2));
                    (i[o >>> 2] |= a << (24 - (o % 4) * 8)), o++;
                  }
                return e.create(i, o);
              }
              t.enc.Base64 = {
                stringify: function (t) {
                  var e = t.words,
                    n = t.sigBytes,
                    r = this._map;
                  t.clamp();
                  for (var i = [], o = 0; o < n; o += 3)
                    for (
                      var s =
                          (((e[o >>> 2] >>> (24 - (o % 4) * 8)) & 255) << 16) |
                          (((e[(o + 1) >>> 2] >>> (24 - ((o + 1) % 4) * 8)) &
                            255) <<
                            8) |
                          ((e[(o + 2) >>> 2] >>> (24 - ((o + 2) % 4) * 8)) &
                            255),
                        a = 0;
                      a < 4 && o + 0.75 * a < n;
                      a++
                    )
                      i.push(r.charAt((s >>> (6 * (3 - a))) & 63));
                  var c = r.charAt(64);
                  if (c) for (; i.length % 4; ) i.push(c);
                  return i.join("");
                },
                parse: function (t) {
                  var e = t.length,
                    n = this._map,
                    i = this._reverseMap;
                  if (!i) {
                    i = this._reverseMap = [];
                    for (var o = 0; o < n.length; o++) i[n.charCodeAt(o)] = o;
                  }
                  var s = n.charAt(64);
                  if (s) {
                    var a = t.indexOf(s);
                    -1 !== a && (e = a);
                  }
                  return r(t, e, i);
                },
                _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
              };
            })(),
            n.enc.Base64);
        })(b)),
      _
    );
  }
  var E,
    S = {},
    C = {
      get exports() {
        return S;
      },
      set exports(t) {
        S = t;
      },
    };
  function D() {
    return (
      E ||
        ((E = 1),
        (function (t, e) {
          var n;
          t.exports =
            ((n = m()),
            (function (t) {
              var e = n,
                r = e.lib,
                i = r.WordArray,
                o = r.Hasher,
                s = e.algo,
                a = [];
              !(function () {
                for (var e = 0; e < 64; e++)
                  a[e] = (4294967296 * t.abs(t.sin(e + 1))) | 0;
              })();
              var c = (s.MD5 = o.extend({
                _doReset: function () {
                  this._hash = new i.init([
                    1732584193, 4023233417, 2562383102, 271733878,
                  ]);
                },
                _doProcessBlock: function (t, e) {
                  for (var n = 0; n < 16; n++) {
                    var r = e + n,
                      i = t[r];
                    t[r] =
                      (16711935 & ((i << 8) | (i >>> 24))) |
                      (4278255360 & ((i << 24) | (i >>> 8)));
                  }
                  var o = this._hash.words,
                    s = t[e + 0],
                    c = t[e + 1],
                    p = t[e + 2],
                    d = t[e + 3],
                    v = t[e + 4],
                    y = t[e + 5],
                    g = t[e + 6],
                    m = t[e + 7],
                    w = t[e + 8],
                    _ = t[e + 9],
                    b = t[e + 10],
                    x = t[e + 11],
                    E = t[e + 12],
                    S = t[e + 13],
                    C = t[e + 14],
                    D = t[e + 15],
                    k = o[0],
                    B = o[1],
                    T = o[2],
                    O = o[3];
                  (k = u(k, B, T, O, s, 7, a[0])),
                    (O = u(O, k, B, T, c, 12, a[1])),
                    (T = u(T, O, k, B, p, 17, a[2])),
                    (B = u(B, T, O, k, d, 22, a[3])),
                    (k = u(k, B, T, O, v, 7, a[4])),
                    (O = u(O, k, B, T, y, 12, a[5])),
                    (T = u(T, O, k, B, g, 17, a[6])),
                    (B = u(B, T, O, k, m, 22, a[7])),
                    (k = u(k, B, T, O, w, 7, a[8])),
                    (O = u(O, k, B, T, _, 12, a[9])),
                    (T = u(T, O, k, B, b, 17, a[10])),
                    (B = u(B, T, O, k, x, 22, a[11])),
                    (k = u(k, B, T, O, E, 7, a[12])),
                    (O = u(O, k, B, T, S, 12, a[13])),
                    (T = u(T, O, k, B, C, 17, a[14])),
                    (k = f(
                      k,
                      (B = u(B, T, O, k, D, 22, a[15])),
                      T,
                      O,
                      c,
                      5,
                      a[16]
                    )),
                    (O = f(O, k, B, T, g, 9, a[17])),
                    (T = f(T, O, k, B, x, 14, a[18])),
                    (B = f(B, T, O, k, s, 20, a[19])),
                    (k = f(k, B, T, O, y, 5, a[20])),
                    (O = f(O, k, B, T, b, 9, a[21])),
                    (T = f(T, O, k, B, D, 14, a[22])),
                    (B = f(B, T, O, k, v, 20, a[23])),
                    (k = f(k, B, T, O, _, 5, a[24])),
                    (O = f(O, k, B, T, C, 9, a[25])),
                    (T = f(T, O, k, B, d, 14, a[26])),
                    (B = f(B, T, O, k, w, 20, a[27])),
                    (k = f(k, B, T, O, S, 5, a[28])),
                    (O = f(O, k, B, T, p, 9, a[29])),
                    (T = f(T, O, k, B, m, 14, a[30])),
                    (k = l(
                      k,
                      (B = f(B, T, O, k, E, 20, a[31])),
                      T,
                      O,
                      y,
                      4,
                      a[32]
                    )),
                    (O = l(O, k, B, T, w, 11, a[33])),
                    (T = l(T, O, k, B, x, 16, a[34])),
                    (B = l(B, T, O, k, C, 23, a[35])),
                    (k = l(k, B, T, O, c, 4, a[36])),
                    (O = l(O, k, B, T, v, 11, a[37])),
                    (T = l(T, O, k, B, m, 16, a[38])),
                    (B = l(B, T, O, k, b, 23, a[39])),
                    (k = l(k, B, T, O, S, 4, a[40])),
                    (O = l(O, k, B, T, s, 11, a[41])),
                    (T = l(T, O, k, B, d, 16, a[42])),
                    (B = l(B, T, O, k, g, 23, a[43])),
                    (k = l(k, B, T, O, _, 4, a[44])),
                    (O = l(O, k, B, T, E, 11, a[45])),
                    (T = l(T, O, k, B, D, 16, a[46])),
                    (k = h(
                      k,
                      (B = l(B, T, O, k, p, 23, a[47])),
                      T,
                      O,
                      s,
                      6,
                      a[48]
                    )),
                    (O = h(O, k, B, T, m, 10, a[49])),
                    (T = h(T, O, k, B, C, 15, a[50])),
                    (B = h(B, T, O, k, y, 21, a[51])),
                    (k = h(k, B, T, O, E, 6, a[52])),
                    (O = h(O, k, B, T, d, 10, a[53])),
                    (T = h(T, O, k, B, b, 15, a[54])),
                    (B = h(B, T, O, k, c, 21, a[55])),
                    (k = h(k, B, T, O, w, 6, a[56])),
                    (O = h(O, k, B, T, D, 10, a[57])),
                    (T = h(T, O, k, B, g, 15, a[58])),
                    (B = h(B, T, O, k, S, 21, a[59])),
                    (k = h(k, B, T, O, v, 6, a[60])),
                    (O = h(O, k, B, T, x, 10, a[61])),
                    (T = h(T, O, k, B, p, 15, a[62])),
                    (B = h(B, T, O, k, _, 21, a[63])),
                    (o[0] = (o[0] + k) | 0),
                    (o[1] = (o[1] + B) | 0),
                    (o[2] = (o[2] + T) | 0),
                    (o[3] = (o[3] + O) | 0);
                },
                _doFinalize: function () {
                  var e = this._data,
                    n = e.words,
                    r = 8 * this._nDataBytes,
                    i = 8 * e.sigBytes;
                  n[i >>> 5] |= 128 << (24 - (i % 32));
                  var o = t.floor(r / 4294967296),
                    s = r;
                  (n[15 + (((i + 64) >>> 9) << 4)] =
                    (16711935 & ((o << 8) | (o >>> 24))) |
                    (4278255360 & ((o << 24) | (o >>> 8)))),
                    (n[14 + (((i + 64) >>> 9) << 4)] =
                      (16711935 & ((s << 8) | (s >>> 24))) |
                      (4278255360 & ((s << 24) | (s >>> 8)))),
                    (e.sigBytes = 4 * (n.length + 1)),
                    this._process();
                  for (var a = this._hash, c = a.words, u = 0; u < 4; u++) {
                    var f = c[u];
                    c[u] =
                      (16711935 & ((f << 8) | (f >>> 24))) |
                      (4278255360 & ((f << 24) | (f >>> 8)));
                  }
                  return a;
                },
                clone: function () {
                  var t = o.clone.call(this);
                  return (t._hash = this._hash.clone()), t;
                },
              }));
              function u(t, e, n, r, i, o, s) {
                var a = t + ((e & n) | (~e & r)) + i + s;
                return ((a << o) | (a >>> (32 - o))) + e;
              }
              function f(t, e, n, r, i, o, s) {
                var a = t + ((e & r) | (n & ~r)) + i + s;
                return ((a << o) | (a >>> (32 - o))) + e;
              }
              function l(t, e, n, r, i, o, s) {
                var a = t + (e ^ n ^ r) + i + s;
                return ((a << o) | (a >>> (32 - o))) + e;
              }
              function h(t, e, n, r, i, o, s) {
                var a = t + (n ^ (e | ~r)) + i + s;
                return ((a << o) | (a >>> (32 - o))) + e;
              }
              (e.MD5 = o._createHelper(c)),
                (e.HmacMD5 = o._createHmacHelper(c));
            })(Math),
            n.MD5);
        })(C)),
      S
    );
  }
  var k,
    B = {},
    T = {
      get exports() {
        return B;
      },
      set exports(t) {
        B = t;
      },
    },
    O = {},
    j = {
      get exports() {
        return O;
      },
      set exports(t) {
        O = t;
      },
    };
  function M() {
    return (
      k ||
        ((k = 1),
        (function (t, e) {
          var n, r, i, o, s, a, c, u;
          t.exports =
            ((u = m()),
            (r = (n = u).lib),
            (i = r.WordArray),
            (o = r.Hasher),
            (s = n.algo),
            (a = []),
            (c = s.SHA1 =
              o.extend({
                _doReset: function () {
                  this._hash = new i.init([
                    1732584193, 4023233417, 2562383102, 271733878, 3285377520,
                  ]);
                },
                _doProcessBlock: function (t, e) {
                  for (
                    var n = this._hash.words,
                      r = n[0],
                      i = n[1],
                      o = n[2],
                      s = n[3],
                      c = n[4],
                      u = 0;
                    u < 80;
                    u++
                  ) {
                    if (u < 16) a[u] = 0 | t[e + u];
                    else {
                      var f = a[u - 3] ^ a[u - 8] ^ a[u - 14] ^ a[u - 16];
                      a[u] = (f << 1) | (f >>> 31);
                    }
                    var l = ((r << 5) | (r >>> 27)) + c + a[u];
                    (l +=
                      u < 20
                        ? 1518500249 + ((i & o) | (~i & s))
                        : u < 40
                        ? 1859775393 + (i ^ o ^ s)
                        : u < 60
                        ? ((i & o) | (i & s) | (o & s)) - 1894007588
                        : (i ^ o ^ s) - 899497514),
                      (c = s),
                      (s = o),
                      (o = (i << 30) | (i >>> 2)),
                      (i = r),
                      (r = l);
                  }
                  (n[0] = (n[0] + r) | 0),
                    (n[1] = (n[1] + i) | 0),
                    (n[2] = (n[2] + o) | 0),
                    (n[3] = (n[3] + s) | 0),
                    (n[4] = (n[4] + c) | 0);
                },
                _doFinalize: function () {
                  var t = this._data,
                    e = t.words,
                    n = 8 * this._nDataBytes,
                    r = 8 * t.sigBytes;
                  return (
                    (e[r >>> 5] |= 128 << (24 - (r % 32))),
                    (e[14 + (((r + 64) >>> 9) << 4)] = Math.floor(
                      n / 4294967296
                    )),
                    (e[15 + (((r + 64) >>> 9) << 4)] = n),
                    (t.sigBytes = 4 * e.length),
                    this._process(),
                    this._hash
                  );
                },
                clone: function () {
                  var t = o.clone.call(this);
                  return (t._hash = this._hash.clone()), t;
                },
              })),
            (n.SHA1 = o._createHelper(c)),
            (n.HmacSHA1 = o._createHmacHelper(c)),
            u.SHA1);
        })(j)),
      O
    );
  }
  var A,
    F,
    R = {},
    L = {
      get exports() {
        return R;
      },
      set exports(t) {
        R = t;
      },
    };
  function P() {
    return (
      F ||
        ((F = 1),
        (function (t, e) {
          var n, r, i, o, s, a, c, u;
          t.exports =
            ((u = m()),
            M(),
            A ||
              ((A = 1),
              (function (t, e) {
                var n, r, i;
                t.exports =
                  ((r = (n = m()).lib.Base),
                  (i = n.enc.Utf8),
                  void (n.algo.HMAC = r.extend({
                    init: function (t, e) {
                      (t = this._hasher = new t.init()),
                        "string" == typeof e && (e = i.parse(e));
                      var n = t.blockSize,
                        r = 4 * n;
                      e.sigBytes > r && (e = t.finalize(e)), e.clamp();
                      for (
                        var o = (this._oKey = e.clone()),
                          s = (this._iKey = e.clone()),
                          a = o.words,
                          c = s.words,
                          u = 0;
                        u < n;
                        u++
                      )
                        (a[u] ^= 1549556828), (c[u] ^= 909522486);
                      (o.sigBytes = s.sigBytes = r), this.reset();
                    },
                    reset: function () {
                      var t = this._hasher;
                      t.reset(), t.update(this._iKey);
                    },
                    update: function (t) {
                      return this._hasher.update(t), this;
                    },
                    finalize: function (t) {
                      var e = this._hasher,
                        n = e.finalize(t);
                      return (
                        e.reset(), e.finalize(this._oKey.clone().concat(n))
                      );
                    },
                  })));
              })(L)),
            (r = (n = u).lib),
            (i = r.Base),
            (o = r.WordArray),
            (s = n.algo),
            (a = s.MD5),
            (c = s.EvpKDF =
              i.extend({
                cfg: i.extend({ keySize: 4, hasher: a, iterations: 1 }),
                init: function (t) {
                  this.cfg = this.cfg.extend(t);
                },
                compute: function (t, e) {
                  for (
                    var n,
                      r = this.cfg,
                      i = r.hasher.create(),
                      s = o.create(),
                      a = s.words,
                      c = r.keySize,
                      u = r.iterations;
                    a.length < c;

                  ) {
                    n && i.update(n), (n = i.update(t).finalize(e)), i.reset();
                    for (var f = 1; f < u; f++) (n = i.finalize(n)), i.reset();
                    s.concat(n);
                  }
                  return (s.sigBytes = 4 * c), s;
                },
              })),
            (n.EvpKDF = function (t, e, n) {
              return c.create(n).compute(t, e);
            }),
            u.EvpKDF);
        })(T)),
      B
    );
  }
  var z,
    N = {},
    H = {
      get exports() {
        return N;
      },
      set exports(t) {
        N = t;
      },
    };
  function I() {
    return (
      z ||
        ((z = 1),
        (function (t, e) {
          var n;
          t.exports =
            ((n = m()),
            P(),
            void (
              n.lib.Cipher ||
              (function (t) {
                var e = n,
                  r = e.lib,
                  i = r.Base,
                  o = r.WordArray,
                  s = r.BufferedBlockAlgorithm,
                  a = e.enc;
                a.Utf8;
                var c = a.Base64,
                  u = e.algo.EvpKDF,
                  f = (r.Cipher = s.extend({
                    cfg: i.extend(),
                    createEncryptor: function (t, e) {
                      return this.create(this._ENC_XFORM_MODE, t, e);
                    },
                    createDecryptor: function (t, e) {
                      return this.create(this._DEC_XFORM_MODE, t, e);
                    },
                    init: function (t, e, n) {
                      (this.cfg = this.cfg.extend(n)),
                        (this._xformMode = t),
                        (this._key = e),
                        this.reset();
                    },
                    reset: function () {
                      s.reset.call(this), this._doReset();
                    },
                    process: function (t) {
                      return this._append(t), this._process();
                    },
                    finalize: function (t) {
                      return t && this._append(t), this._doFinalize();
                    },
                    keySize: 4,
                    ivSize: 4,
                    _ENC_XFORM_MODE: 1,
                    _DEC_XFORM_MODE: 2,
                    _createHelper: (function () {
                      function t(t) {
                        return "string" == typeof t ? w : g;
                      }
                      return function (e) {
                        return {
                          encrypt: function (n, r, i) {
                            return t(r).encrypt(e, n, r, i);
                          },
                          decrypt: function (n, r, i) {
                            return t(r).decrypt(e, n, r, i);
                          },
                        };
                      };
                    })(),
                  }));
                r.StreamCipher = f.extend({
                  _doFinalize: function () {
                    return this._process(!0);
                  },
                  blockSize: 1,
                });
                var l = (e.mode = {}),
                  h = (r.BlockCipherMode = i.extend({
                    createEncryptor: function (t, e) {
                      return this.Encryptor.create(t, e);
                    },
                    createDecryptor: function (t, e) {
                      return this.Decryptor.create(t, e);
                    },
                    init: function (t, e) {
                      (this._cipher = t), (this._iv = e);
                    },
                  })),
                  p = (l.CBC = (function () {
                    var e = h.extend();
                    function n(e, n, r) {
                      var i,
                        o = this._iv;
                      o ? ((i = o), (this._iv = t)) : (i = this._prevBlock);
                      for (var s = 0; s < r; s++) e[n + s] ^= i[s];
                    }
                    return (
                      (e.Encryptor = e.extend({
                        processBlock: function (t, e) {
                          var r = this._cipher,
                            i = r.blockSize;
                          n.call(this, t, e, i),
                            r.encryptBlock(t, e),
                            (this._prevBlock = t.slice(e, e + i));
                        },
                      })),
                      (e.Decryptor = e.extend({
                        processBlock: function (t, e) {
                          var r = this._cipher,
                            i = r.blockSize,
                            o = t.slice(e, e + i);
                          r.decryptBlock(t, e),
                            n.call(this, t, e, i),
                            (this._prevBlock = o);
                        },
                      })),
                      e
                    );
                  })()),
                  d = ((e.pad = {}).Pkcs7 = {
                    pad: function (t, e) {
                      for (
                        var n = 4 * e,
                          r = n - (t.sigBytes % n),
                          i = (r << 24) | (r << 16) | (r << 8) | r,
                          s = [],
                          a = 0;
                        a < r;
                        a += 4
                      )
                        s.push(i);
                      var c = o.create(s, r);
                      t.concat(c);
                    },
                    unpad: function (t) {
                      var e = 255 & t.words[(t.sigBytes - 1) >>> 2];
                      t.sigBytes -= e;
                    },
                  });
                r.BlockCipher = f.extend({
                  cfg: f.cfg.extend({ mode: p, padding: d }),
                  reset: function () {
                    var t;
                    f.reset.call(this);
                    var e = this.cfg,
                      n = e.iv,
                      r = e.mode;
                    this._xformMode == this._ENC_XFORM_MODE
                      ? (t = r.createEncryptor)
                      : ((t = r.createDecryptor), (this._minBufferSize = 1)),
                      this._mode && this._mode.__creator == t
                        ? this._mode.init(this, n && n.words)
                        : ((this._mode = t.call(r, this, n && n.words)),
                          (this._mode.__creator = t));
                  },
                  _doProcessBlock: function (t, e) {
                    this._mode.processBlock(t, e);
                  },
                  _doFinalize: function () {
                    var t,
                      e = this.cfg.padding;
                    return (
                      this._xformMode == this._ENC_XFORM_MODE
                        ? (e.pad(this._data, this.blockSize),
                          (t = this._process(!0)))
                        : ((t = this._process(!0)), e.unpad(t)),
                      t
                    );
                  },
                  blockSize: 4,
                });
                var v = (r.CipherParams = i.extend({
                    init: function (t) {
                      this.mixIn(t);
                    },
                    toString: function (t) {
                      return (t || this.formatter).stringify(this);
                    },
                  })),
                  y = ((e.format = {}).OpenSSL = {
                    stringify: function (t) {
                      var e = t.ciphertext,
                        n = t.salt;
                      return (
                        n
                          ? o
                              .create([1398893684, 1701076831])
                              .concat(n)
                              .concat(e)
                          : e
                      ).toString(c);
                    },
                    parse: function (t) {
                      var e,
                        n = c.parse(t),
                        r = n.words;
                      return (
                        1398893684 == r[0] &&
                          1701076831 == r[1] &&
                          ((e = o.create(r.slice(2, 4))),
                          r.splice(0, 4),
                          (n.sigBytes -= 16)),
                        v.create({ ciphertext: n, salt: e })
                      );
                    },
                  }),
                  g = (r.SerializableCipher = i.extend({
                    cfg: i.extend({ format: y }),
                    encrypt: function (t, e, n, r) {
                      r = this.cfg.extend(r);
                      var i = t.createEncryptor(n, r),
                        o = i.finalize(e),
                        s = i.cfg;
                      return v.create({
                        ciphertext: o,
                        key: n,
                        iv: s.iv,
                        algorithm: t,
                        mode: s.mode,
                        padding: s.padding,
                        blockSize: t.blockSize,
                        formatter: r.format,
                      });
                    },
                    decrypt: function (t, e, n, r) {
                      return (
                        (r = this.cfg.extend(r)),
                        (e = this._parse(e, r.format)),
                        t.createDecryptor(n, r).finalize(e.ciphertext)
                      );
                    },
                    _parse: function (t, e) {
                      return "string" == typeof t ? e.parse(t, this) : t;
                    },
                  })),
                  m = ((e.kdf = {}).OpenSSL = {
                    execute: function (t, e, n, r) {
                      r || (r = o.random(8));
                      var i = u.create({ keySize: e + n }).compute(t, r),
                        s = o.create(i.words.slice(e), 4 * n);
                      return (
                        (i.sigBytes = 4 * e),
                        v.create({ key: i, iv: s, salt: r })
                      );
                    },
                  }),
                  w = (r.PasswordBasedCipher = g.extend({
                    cfg: g.cfg.extend({ kdf: m }),
                    encrypt: function (t, e, n, r) {
                      var i = (r = this.cfg.extend(r)).kdf.execute(
                        n,
                        t.keySize,
                        t.ivSize
                      );
                      r.iv = i.iv;
                      var o = g.encrypt.call(this, t, e, i.key, r);
                      return o.mixIn(i), o;
                    },
                    decrypt: function (t, e, n, r) {
                      (r = this.cfg.extend(r)), (e = this._parse(e, r.format));
                      var i = r.kdf.execute(n, t.keySize, t.ivSize, e.salt);
                      return (
                        (r.iv = i.iv), g.decrypt.call(this, t, e, i.key, r)
                      );
                    },
                  }));
              })()
            ));
        })(H)),
      N
    );
  }
  !(function (t, e) {
    var n;
    t.exports =
      ((n = m()),
      x(),
      D(),
      P(),
      I(),
      (function () {
        var t = n,
          e = t.lib.BlockCipher,
          r = t.algo,
          i = [],
          o = [],
          s = [],
          a = [],
          c = [],
          u = [],
          f = [],
          l = [],
          h = [],
          p = [];
        !(function () {
          for (var t = [], e = 0; e < 256; e++)
            t[e] = e < 128 ? e << 1 : (e << 1) ^ 283;
          var n = 0,
            r = 0;
          for (e = 0; e < 256; e++) {
            var d = r ^ (r << 1) ^ (r << 2) ^ (r << 3) ^ (r << 4);
            (d = (d >>> 8) ^ (255 & d) ^ 99), (i[n] = d), (o[d] = n);
            var v = t[n],
              y = t[v],
              g = t[y],
              m = (257 * t[d]) ^ (16843008 * d);
            (s[n] = (m << 24) | (m >>> 8)),
              (a[n] = (m << 16) | (m >>> 16)),
              (c[n] = (m << 8) | (m >>> 24)),
              (u[n] = m),
              (m = (16843009 * g) ^ (65537 * y) ^ (257 * v) ^ (16843008 * n)),
              (f[d] = (m << 24) | (m >>> 8)),
              (l[d] = (m << 16) | (m >>> 16)),
              (h[d] = (m << 8) | (m >>> 24)),
              (p[d] = m),
              n ? ((n = v ^ t[t[t[g ^ v]]]), (r ^= t[t[r]])) : (n = r = 1);
          }
        })();
        var d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
          v = (r.AES = e.extend({
            _doReset: function () {
              if (!this._nRounds || this._keyPriorReset !== this._key) {
                for (
                  var t = (this._keyPriorReset = this._key),
                    e = t.words,
                    n = t.sigBytes / 4,
                    r = 4 * ((this._nRounds = n + 6) + 1),
                    o = (this._keySchedule = []),
                    s = 0;
                  s < r;
                  s++
                )
                  s < n
                    ? (o[s] = e[s])
                    : ((u = o[s - 1]),
                      s % n
                        ? n > 6 &&
                          s % n == 4 &&
                          (u =
                            (i[u >>> 24] << 24) |
                            (i[(u >>> 16) & 255] << 16) |
                            (i[(u >>> 8) & 255] << 8) |
                            i[255 & u])
                        : ((u =
                            (i[(u = (u << 8) | (u >>> 24)) >>> 24] << 24) |
                            (i[(u >>> 16) & 255] << 16) |
                            (i[(u >>> 8) & 255] << 8) |
                            i[255 & u]),
                          (u ^= d[(s / n) | 0] << 24)),
                      (o[s] = o[s - n] ^ u));
                for (var a = (this._invKeySchedule = []), c = 0; c < r; c++) {
                  if (((s = r - c), c % 4)) var u = o[s];
                  else u = o[s - 4];
                  a[c] =
                    c < 4 || s <= 4
                      ? u
                      : f[i[u >>> 24]] ^
                        l[i[(u >>> 16) & 255]] ^
                        h[i[(u >>> 8) & 255]] ^
                        p[i[255 & u]];
                }
              }
            },
            encryptBlock: function (t, e) {
              this._doCryptBlock(t, e, this._keySchedule, s, a, c, u, i);
            },
            decryptBlock: function (t, e) {
              var n = t[e + 1];
              (t[e + 1] = t[e + 3]),
                (t[e + 3] = n),
                this._doCryptBlock(t, e, this._invKeySchedule, f, l, h, p, o),
                (n = t[e + 1]),
                (t[e + 1] = t[e + 3]),
                (t[e + 3] = n);
            },
            _doCryptBlock: function (t, e, n, r, i, o, s, a) {
              for (
                var c = this._nRounds,
                  u = t[e] ^ n[0],
                  f = t[e + 1] ^ n[1],
                  l = t[e + 2] ^ n[2],
                  h = t[e + 3] ^ n[3],
                  p = 4,
                  d = 1;
                d < c;
                d++
              ) {
                var v =
                    r[u >>> 24] ^
                    i[(f >>> 16) & 255] ^
                    o[(l >>> 8) & 255] ^
                    s[255 & h] ^
                    n[p++],
                  y =
                    r[f >>> 24] ^
                    i[(l >>> 16) & 255] ^
                    o[(h >>> 8) & 255] ^
                    s[255 & u] ^
                    n[p++],
                  g =
                    r[l >>> 24] ^
                    i[(h >>> 16) & 255] ^
                    o[(u >>> 8) & 255] ^
                    s[255 & f] ^
                    n[p++],
                  m =
                    r[h >>> 24] ^
                    i[(u >>> 16) & 255] ^
                    o[(f >>> 8) & 255] ^
                    s[255 & l] ^
                    n[p++];
                (u = v), (f = y), (l = g), (h = m);
              }
              (v =
                ((a[u >>> 24] << 24) |
                  (a[(f >>> 16) & 255] << 16) |
                  (a[(l >>> 8) & 255] << 8) |
                  a[255 & h]) ^
                n[p++]),
                (y =
                  ((a[f >>> 24] << 24) |
                    (a[(l >>> 16) & 255] << 16) |
                    (a[(h >>> 8) & 255] << 8) |
                    a[255 & u]) ^
                  n[p++]),
                (g =
                  ((a[l >>> 24] << 24) |
                    (a[(h >>> 16) & 255] << 16) |
                    (a[(u >>> 8) & 255] << 8) |
                    a[255 & f]) ^
                  n[p++]),
                (m =
                  ((a[h >>> 24] << 24) |
                    (a[(u >>> 16) & 255] << 16) |
                    (a[(f >>> 8) & 255] << 8) |
                    a[255 & l]) ^
                  n[p++]),
                (t[e] = v),
                (t[e + 1] = y),
                (t[e + 2] = g),
                (t[e + 3] = m);
            },
            keySize: 8,
          }));
        t.AES = e._createHelper(v);
      })(),
      n.AES);
  })(p);
  var J = h,
    V = {};
  !(function (t, e) {
    t.exports = m().enc.Utf8;
  })({
    get exports() {
      return V;
    },
    set exports(t) {
      V = t;
    },
  });
  var q = V,
    K = {};
  !(function (t, e) {
    var n;
    t.exports = ((n = m()), I(), n.pad.Pkcs7);
  })({
    get exports() {
      return K;
    },
    set exports(t) {
      K = t;
    },
  });
  var U = K;
  var Z = "log";
  var W = ["moz-extension", "safari-extension", "chrome-extension", "jieba.js"],
    X = [
      "WeixinOpenTags",
      "UCShellJava",
      "CloudHubJSBridge",
      "LanxinJsBridge",
      "moz-extension",
      "safari-extension",
      "chrome-extension",
      "ResizeObserver loop limit exceeded",
      "ResizeObserver loop completed with undelivered notification",
      '"isTrusted":true',
      '"isTrusted":false',
    ],
    Q = ["QQ/.+ QBWebViewType"];
  function $(t) {
    void 0 === t && (t = { type: "" });
    var e = t.type;
    return e
      ? "string" == typeof e ||
          (console.error("【monjs】日志 type 应为字符串"), !1)
      : (console.error("【monjs】请设置日志 type"), !1);
  }
  function Y(t, e) {
    if (t === e) return !0;
    if (null == t || null == e || void 0 === e) return t === e;
    if (typeof t != typeof e) return !1;
    if (Array.isArray(t) && Array.isArray(e)) {
      if (t.length !== e.length) return !1;
      for (var n = 0; n < t.length; n++) if (!Y(t[n], e[n])) return !1;
      return !0;
    }
    if ("object" == typeof t && "object" == typeof e) {
      if (Object.keys(t).length !== Object.keys(e).length) return !1;
      for (var r in t) if (!Y(t[r], e[r])) return !1;
      return !0;
    }
    return t === e;
  }
  var G = function (t) {
    void 0 === t && (t = 8);
    var e = t,
      n = [],
      r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
    for (n.push(r[Math.floor(52 * Math.random())]); e-- > 1; )
      n.push(r[Math.floor(62 * Math.random())]);
    return n.join("");
  };
  function tt(t) {
    var e = t.isEnableReport;
    return !(void 0 !== e && e);
  }
  var et,
    nt = function (t) {
      return "PromiseRejectionEvent" in window
        ? t instanceof window.PromiseRejectionEvent
        : "unhandledrejection" === t.type;
    },
    rt = function (t) {
      if ("" !== t && !t) return "null";
      if (t instanceof Error || t instanceof ErrorEvent || nt(t))
        return "error";
      var e = typeof t;
      return "object" === e && t instanceof Event && "error" === t.type
        ? "error"
        : "object" !== e
        ? e
        : Object.prototype.toString
            .call(t)
            .match(/\s([a-zA-Z]+)/)[1]
            .toLowerCase();
    },
    it = function (t) {
      return "object" === rt(t) || "array" === rt(t)
        ? JSON.stringify(t)
        : String(t);
    },
    ot = function (t, e) {
      void 0 === t && (t = ""), void 0 === e && (e = "");
      var n = (function (t) {
        return "".concat(t).concat(Z);
      })(t);
      return e && (n += "?type=".concat(e)), n;
    };
  function st(t, e, n) {
    null != t &&
      ("number" == typeof t
        ? this.fromNumber(t, e, n)
        : null == e && "string" != typeof t
        ? this.fromString(t, 256)
        : this.fromString(t, e));
  }
  function at() {
    return new st(null);
  }
  "Microsoft Internet Explorer" == navigator.appName
    ? ((st.prototype.am = function (t, e, n, r, i, o) {
        for (var s = 32767 & e, a = e >> 15; --o >= 0; ) {
          var c = 32767 & this[t],
            u = this[t++] >> 15,
            f = a * c + u * s;
          (i =
            ((c = s * c + ((32767 & f) << 15) + n[r] + (1073741823 & i)) >>>
              30) +
            (f >>> 15) +
            a * u +
            (i >>> 30)),
            (n[r++] = 1073741823 & c);
        }
        return i;
      }),
      (et = 30))
    : "Netscape" != navigator.appName
    ? ((st.prototype.am = function (t, e, n, r, i, o) {
        for (; --o >= 0; ) {
          var s = e * this[t++] + n[r] + i;
          (i = Math.floor(s / 67108864)), (n[r++] = 67108863 & s);
        }
        return i;
      }),
      (et = 26))
    : ((st.prototype.am = function (t, e, n, r, i, o) {
        for (var s = 16383 & e, a = e >> 14; --o >= 0; ) {
          var c = 16383 & this[t],
            u = this[t++] >> 14,
            f = a * c + u * s;
          (i =
            ((c = s * c + ((16383 & f) << 14) + n[r] + i) >> 28) +
            (f >> 14) +
            a * u),
            (n[r++] = 268435455 & c);
        }
        return i;
      }),
      (et = 28)),
    (st.prototype.DB = et),
    (st.prototype.DM = (1 << et) - 1),
    (st.prototype.DV = 1 << et);
  (st.prototype.FV = Math.pow(2, 52)),
    (st.prototype.F1 = 52 - et),
    (st.prototype.F2 = 2 * et - 52);
  var ct,
    ut,
    ft = "0123456789abcdefghijklmnopqrstuvwxyz",
    lt = new Array();
  for (ct = "0".charCodeAt(0), ut = 0; ut <= 9; ++ut) lt[ct++] = ut;
  for (ct = "a".charCodeAt(0), ut = 10; ut < 36; ++ut) lt[ct++] = ut;
  for (ct = "A".charCodeAt(0), ut = 10; ut < 36; ++ut) lt[ct++] = ut;
  function ht(t) {
    return ft.charAt(t);
  }
  function pt(t, e) {
    var n = lt[t.charCodeAt(e)];
    return null == n ? -1 : n;
  }
  function dt(t) {
    var e = at();
    return e.fromInt(t), e;
  }
  function vt(t) {
    var e,
      n = 1;
    return (
      0 != (e = t >>> 16) && ((t = e), (n += 16)),
      0 != (e = t >> 8) && ((t = e), (n += 8)),
      0 != (e = t >> 4) && ((t = e), (n += 4)),
      0 != (e = t >> 2) && ((t = e), (n += 2)),
      0 != (e = t >> 1) && ((t = e), (n += 1)),
      n
    );
  }
  function yt(t) {
    this.m = t;
  }
  function gt(t) {
    (this.m = t),
      (this.mp = t.invDigit()),
      (this.mpl = 32767 & this.mp),
      (this.mph = this.mp >> 15),
      (this.um = (1 << (t.DB - 15)) - 1),
      (this.mt2 = 2 * t.t);
  }
  function mt() {
    (this.i = 0), (this.j = 0), (this.S = new Array());
  }
  (yt.prototype.convert = function (t) {
    return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t;
  }),
    (yt.prototype.revert = function (t) {
      return t;
    }),
    (yt.prototype.reduce = function (t) {
      t.divRemTo(this.m, null, t);
    }),
    (yt.prototype.mulTo = function (t, e, n) {
      t.multiplyTo(e, n), this.reduce(n);
    }),
    (yt.prototype.sqrTo = function (t, e) {
      t.squareTo(e), this.reduce(e);
    }),
    (gt.prototype.convert = function (t) {
      var e = at();
      return (
        t.abs().dlShiftTo(this.m.t, e),
        e.divRemTo(this.m, null, e),
        t.s < 0 && e.compareTo(st.ZERO) > 0 && this.m.subTo(e, e),
        e
      );
    }),
    (gt.prototype.revert = function (t) {
      var e = at();
      return t.copyTo(e), this.reduce(e), e;
    }),
    (gt.prototype.reduce = function (t) {
      for (; t.t <= this.mt2; ) t[t.t++] = 0;
      for (var e = 0; e < this.m.t; ++e) {
        var n = 32767 & t[e],
          r =
            (n * this.mpl +
              (((n * this.mph + (t[e] >> 15) * this.mpl) & this.um) << 15)) &
            t.DM;
        for (
          t[(n = e + this.m.t)] += this.m.am(0, r, t, e, 0, this.m.t);
          t[n] >= t.DV;

        )
          (t[n] -= t.DV), t[++n]++;
      }
      t.clamp(),
        t.drShiftTo(this.m.t, t),
        t.compareTo(this.m) >= 0 && t.subTo(this.m, t);
    }),
    (gt.prototype.mulTo = function (t, e, n) {
      t.multiplyTo(e, n), this.reduce(n);
    }),
    (gt.prototype.sqrTo = function (t, e) {
      t.squareTo(e), this.reduce(e);
    }),
    (st.prototype.copyTo = function (t) {
      for (var e = this.t - 1; e >= 0; --e) t[e] = this[e];
      (t.t = this.t), (t.s = this.s);
    }),
    (st.prototype.fromInt = function (t) {
      (this.t = 1),
        (this.s = t < 0 ? -1 : 0),
        t > 0 ? (this[0] = t) : t < -1 ? (this[0] = t + this.DV) : (this.t = 0);
    }),
    (st.prototype.fromString = function (t, e) {
      var n;
      if (16 == e) n = 4;
      else if (8 == e) n = 3;
      else if (256 == e) n = 8;
      else if (2 == e) n = 1;
      else if (32 == e) n = 5;
      else {
        if (4 != e) return void this.fromRadix(t, e);
        n = 2;
      }
      (this.t = 0), (this.s = 0);
      for (var r = t.length, i = !1, o = 0; --r >= 0; ) {
        var s = 8 == n ? 255 & t[r] : pt(t, r);
        s < 0
          ? "-" == t.charAt(r) && (i = !0)
          : ((i = !1),
            0 == o
              ? (this[this.t++] = s)
              : o + n > this.DB
              ? ((this[this.t - 1] |= (s & ((1 << (this.DB - o)) - 1)) << o),
                (this[this.t++] = s >> (this.DB - o)))
              : (this[this.t - 1] |= s << o),
            (o += n) >= this.DB && (o -= this.DB));
      }
      8 == n &&
        0 != (128 & t[0]) &&
        ((this.s = -1),
        o > 0 && (this[this.t - 1] |= ((1 << (this.DB - o)) - 1) << o)),
        this.clamp(),
        i && st.ZERO.subTo(this, this);
    }),
    (st.prototype.clamp = function () {
      for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t; )
        --this.t;
    }),
    (st.prototype.dlShiftTo = function (t, e) {
      var n;
      for (n = this.t - 1; n >= 0; --n) e[n + t] = this[n];
      for (n = t - 1; n >= 0; --n) e[n] = 0;
      (e.t = this.t + t), (e.s = this.s);
    }),
    (st.prototype.drShiftTo = function (t, e) {
      for (var n = t; n < this.t; ++n) e[n - t] = this[n];
      (e.t = Math.max(this.t - t, 0)), (e.s = this.s);
    }),
    (st.prototype.lShiftTo = function (t, e) {
      var n,
        r = t % this.DB,
        i = this.DB - r,
        o = (1 << i) - 1,
        s = Math.floor(t / this.DB),
        a = (this.s << r) & this.DM;
      for (n = this.t - 1; n >= 0; --n)
        (e[n + s + 1] = (this[n] >> i) | a), (a = (this[n] & o) << r);
      for (n = s - 1; n >= 0; --n) e[n] = 0;
      (e[s] = a), (e.t = this.t + s + 1), (e.s = this.s), e.clamp();
    }),
    (st.prototype.rShiftTo = function (t, e) {
      e.s = this.s;
      var n = Math.floor(t / this.DB);
      if (n >= this.t) e.t = 0;
      else {
        var r = t % this.DB,
          i = this.DB - r,
          o = (1 << r) - 1;
        e[0] = this[n] >> r;
        for (var s = n + 1; s < this.t; ++s)
          (e[s - n - 1] |= (this[s] & o) << i), (e[s - n] = this[s] >> r);
        r > 0 && (e[this.t - n - 1] |= (this.s & o) << i),
          (e.t = this.t - n),
          e.clamp();
      }
    }),
    (st.prototype.subTo = function (t, e) {
      for (var n = 0, r = 0, i = Math.min(t.t, this.t); n < i; )
        (r += this[n] - t[n]), (e[n++] = r & this.DM), (r >>= this.DB);
      if (t.t < this.t) {
        for (r -= t.s; n < this.t; )
          (r += this[n]), (e[n++] = r & this.DM), (r >>= this.DB);
        r += this.s;
      } else {
        for (r += this.s; n < t.t; )
          (r -= t[n]), (e[n++] = r & this.DM), (r >>= this.DB);
        r -= t.s;
      }
      (e.s = r < 0 ? -1 : 0),
        r < -1 ? (e[n++] = this.DV + r) : r > 0 && (e[n++] = r),
        (e.t = n),
        e.clamp();
    }),
    (st.prototype.multiplyTo = function (t, e) {
      var n = this.abs(),
        r = t.abs(),
        i = n.t;
      for (e.t = i + r.t; --i >= 0; ) e[i] = 0;
      for (i = 0; i < r.t; ++i) e[i + n.t] = n.am(0, r[i], e, i, 0, n.t);
      (e.s = 0), e.clamp(), this.s != t.s && st.ZERO.subTo(e, e);
    }),
    (st.prototype.squareTo = function (t) {
      for (var e = this.abs(), n = (t.t = 2 * e.t); --n >= 0; ) t[n] = 0;
      for (n = 0; n < e.t - 1; ++n) {
        var r = e.am(n, e[n], t, 2 * n, 0, 1);
        (t[n + e.t] += e.am(n + 1, 2 * e[n], t, 2 * n + 1, r, e.t - n - 1)) >=
          e.DV && ((t[n + e.t] -= e.DV), (t[n + e.t + 1] = 1));
      }
      t.t > 0 && (t[t.t - 1] += e.am(n, e[n], t, 2 * n, 0, 1)),
        (t.s = 0),
        t.clamp();
    }),
    (st.prototype.divRemTo = function (t, e, n) {
      var r = t.abs();
      if (!(r.t <= 0)) {
        var i = this.abs();
        if (i.t < r.t)
          return null != e && e.fromInt(0), void (null != n && this.copyTo(n));
        null == n && (n = at());
        var o = at(),
          s = this.s,
          a = t.s,
          c = this.DB - vt(r[r.t - 1]);
        c > 0
          ? (r.lShiftTo(c, o), i.lShiftTo(c, n))
          : (r.copyTo(o), i.copyTo(n));
        var u = o.t,
          f = o[u - 1];
        if (0 != f) {
          var l = f * (1 << this.F1) + (u > 1 ? o[u - 2] >> this.F2 : 0),
            h = this.FV / l,
            p = (1 << this.F1) / l,
            d = 1 << this.F2,
            v = n.t,
            y = v - u,
            g = null == e ? at() : e;
          for (
            o.dlShiftTo(y, g),
              n.compareTo(g) >= 0 && ((n[n.t++] = 1), n.subTo(g, n)),
              st.ONE.dlShiftTo(u, g),
              g.subTo(o, o);
            o.t < u;

          )
            o[o.t++] = 0;
          for (; --y >= 0; ) {
            var m =
              n[--v] == f ? this.DM : Math.floor(n[v] * h + (n[v - 1] + d) * p);
            if ((n[v] += o.am(0, m, n, y, 0, u)) < m)
              for (o.dlShiftTo(y, g), n.subTo(g, n); n[v] < --m; )
                n.subTo(g, n);
          }
          null != e && (n.drShiftTo(u, e), s != a && st.ZERO.subTo(e, e)),
            (n.t = u),
            n.clamp(),
            c > 0 && n.rShiftTo(c, n),
            s < 0 && st.ZERO.subTo(n, n);
        }
      }
    }),
    (st.prototype.invDigit = function () {
      if (this.t < 1) return 0;
      var t = this[0];
      if (0 == (1 & t)) return 0;
      var e = 3 & t;
      return (e =
        ((e =
          ((e =
            ((e = (e * (2 - (15 & t) * e)) & 15) * (2 - (255 & t) * e)) & 255) *
            (2 - (((65535 & t) * e) & 65535))) &
          65535) *
          (2 - ((t * e) % this.DV))) %
        this.DV) > 0
        ? this.DV - e
        : -e;
    }),
    (st.prototype.isEven = function () {
      return 0 == (this.t > 0 ? 1 & this[0] : this.s);
    }),
    (st.prototype.exp = function (t, e) {
      if (t > 4294967295 || t < 1) return st.ONE;
      var n = at(),
        r = at(),
        i = e.convert(this),
        o = vt(t) - 1;
      for (i.copyTo(n); --o >= 0; )
        if ((e.sqrTo(n, r), (t & (1 << o)) > 0)) e.mulTo(r, i, n);
        else {
          var s = n;
          (n = r), (r = s);
        }
      return e.revert(n);
    }),
    (st.prototype.toString = function (t) {
      if (this.s < 0) return "-" + this.negate().toString(t);
      var e;
      if (16 == t) e = 4;
      else if (8 == t) e = 3;
      else if (2 == t) e = 1;
      else if (32 == t) e = 5;
      else {
        if (4 != t) return this.toRadix(t);
        e = 2;
      }
      var n,
        r = (1 << e) - 1,
        i = !1,
        o = "",
        s = this.t,
        a = this.DB - ((s * this.DB) % e);
      if (s-- > 0)
        for (
          a < this.DB && (n = this[s] >> a) > 0 && ((i = !0), (o = ht(n)));
          s >= 0;

        )
          a < e
            ? ((n = (this[s] & ((1 << a) - 1)) << (e - a)),
              (n |= this[--s] >> (a += this.DB - e)))
            : ((n = (this[s] >> (a -= e)) & r),
              a <= 0 && ((a += this.DB), --s)),
            n > 0 && (i = !0),
            i && (o += ht(n));
      return i ? o : "0";
    }),
    (st.prototype.negate = function () {
      var t = at();
      return st.ZERO.subTo(this, t), t;
    }),
    (st.prototype.abs = function () {
      return this.s < 0 ? this.negate() : this;
    }),
    (st.prototype.compareTo = function (t) {
      var e = this.s - t.s;
      if (0 != e) return e;
      var n = this.t;
      if (0 != (e = n - t.t)) return this.s < 0 ? -e : e;
      for (; --n >= 0; ) if (0 != (e = this[n] - t[n])) return e;
      return 0;
    }),
    (st.prototype.bitLength = function () {
      return this.t <= 0
        ? 0
        : this.DB * (this.t - 1) + vt(this[this.t - 1] ^ (this.s & this.DM));
    }),
    (st.prototype.mod = function (t) {
      var e = at();
      return (
        this.abs().divRemTo(t, null, e),
        this.s < 0 && e.compareTo(st.ZERO) > 0 && t.subTo(e, e),
        e
      );
    }),
    (st.prototype.modPowInt = function (t, e) {
      var n;
      return (
        (n = t < 256 || e.isEven() ? new yt(e) : new gt(e)), this.exp(t, n)
      );
    }),
    (st.ZERO = dt(0)),
    (st.ONE = dt(1)),
    (mt.prototype.init = function (t) {
      var e, n, r;
      for (e = 0; e < 256; ++e) this.S[e] = e;
      for (n = 0, e = 0; e < 256; ++e)
        (n = (n + this.S[e] + t[e % t.length]) & 255),
          (r = this.S[e]),
          (this.S[e] = this.S[n]),
          (this.S[n] = r);
      (this.i = 0), (this.j = 0);
    }),
    (mt.prototype.next = function () {
      var t;
      return (
        (this.i = (this.i + 1) & 255),
        (this.j = (this.j + this.S[this.i]) & 255),
        (t = this.S[this.i]),
        (this.S[this.i] = this.S[this.j]),
        (this.S[this.j] = t),
        this.S[(t + this.S[this.i]) & 255]
      );
    });
  var wt,
    _t,
    bt,
    xt = 256;
  function Et() {
    var t;
    (t = new Date().getTime()),
      (_t[bt++] ^= 255 & t),
      (_t[bt++] ^= (t >> 8) & 255),
      (_t[bt++] ^= (t >> 16) & 255),
      (_t[bt++] ^= (t >> 24) & 255),
      bt >= xt && (bt -= xt);
  }
  if (null == _t) {
    (_t = new Array()), (bt = 0);
    var St = void 0;
    if (window.crypto && window.crypto.getRandomValues) {
      var Ct = new Uint8Array(32);
      for (window.crypto.getRandomValues(Ct), St = 0; St < 32; ++St)
        _t[bt++] = Ct[St];
    }
    if (
      "Netscape" == navigator.appName &&
      navigator.appVersion < "5" &&
      window.crypto &&
      window.crypto.random
    ) {
      var Dt = window.crypto.random(32);
      for (St = 0; St < Dt.length; ++St) _t[bt++] = 255 & Dt.charCodeAt(St);
    }
    for (; bt < xt; )
      (St = Math.floor(65536 * Math.random())),
        (_t[bt++] = St >>> 8),
        (_t[bt++] = 255 & St);
    (bt = 0), Et();
  }
  function kt() {
    if (null == wt) {
      for (Et(), (wt = new mt()).init(_t), bt = 0; bt < _t.length; ++bt)
        _t[bt] = 0;
      bt = 0;
    }
    return wt.next();
  }
  function Bt() {}
  function Tt() {
    (this.n = null),
      (this.e = 0),
      (this.d = null),
      (this.p = null),
      (this.q = null),
      (this.dmp1 = null),
      (this.dmq1 = null),
      (this.coeff = null);
  }
  (Bt.prototype.nextBytes = function (t) {
    var e;
    for (e = 0; e < t.length; ++e) t[e] = kt();
  }),
    (Tt.prototype.doPublic = function (t) {
      return t.modPowInt(this.e, this.n);
    }),
    (Tt.prototype.setPublic = function (t, e) {
      null != t && null != e && t.length > 0 && e.length > 0
        ? ((this.n = new st(t, 16)), (this.e = parseInt(e, 16)))
        : console.error("Invalid RSA public key");
    }),
    (Tt.prototype.encrypt = function (t) {
      var e = (function (t, e) {
        if (e < t.length + 11)
          return console.error("Message too long for RSA"), null;
        for (var n = new Array(), r = t.length - 1; r >= 0 && e > 0; ) {
          var i = t.charCodeAt(r--);
          i < 128
            ? (n[--e] = i)
            : i > 127 && i < 2048
            ? ((n[--e] = (63 & i) | 128), (n[--e] = (i >> 6) | 192))
            : ((n[--e] = (63 & i) | 128),
              (n[--e] = ((i >> 6) & 63) | 128),
              (n[--e] = (i >> 12) | 224));
        }
        n[--e] = 0;
        for (var o = new Bt(), s = new Array(); e > 2; ) {
          for (s[0] = 0; 0 == s[0]; ) o.nextBytes(s);
          n[--e] = s[0];
        }
        return (n[--e] = 2), (n[--e] = 0), new st(n);
      })(t, (this.n.bitLength() + 7) >> 3);
      if (null == e) return null;
      var n = this.doPublic(e);
      if (null == n) return null;
      var r = n.toString(16);
      return 0 == (1 & r.length) ? r : "0" + r;
    });
  var Ot = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
    jt = "=";
  function Mt(t) {
    var e,
      n,
      r = "";
    for (e = 0; e + 3 <= t.length; e += 3)
      (n = parseInt(t.substring(e, e + 3), 16)),
        (r += Ot.charAt(n >> 6) + Ot.charAt(63 & n));
    for (
      e + 1 == t.length
        ? ((n = parseInt(t.substring(e, e + 1), 16)), (r += Ot.charAt(n << 2)))
        : e + 2 == t.length &&
          ((n = parseInt(t.substring(e, e + 2), 16)),
          (r += Ot.charAt(n >> 2) + Ot.charAt((3 & n) << 4)));
      (3 & r.length) > 0;

    )
      r += jt;
    return r;
  }
  function At(t, e) {
    for (var n = "", r = 0; r + e < t.length; )
      (n += t.substring(r, r + e)), (r += e);
    return n + t.substring(r, t.length);
  }
  function Ft(t) {
    void 0 === t && (t = {});
    var e,
      n,
      r,
      i,
      o,
      s,
      a = (function (t) {
        void 0 === t && (t = 32);
        for (
          var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
            n = "",
            r = 0;
          r < t;
          r++
        )
          n += e.charAt(Math.floor(52 * Math.random()));
        return n;
      })(32),
      c = (function (t, e) {
        if (Tt && At && Mt) {
          var n = 0,
            r = function (t, e) {
              var i = new Tt();
              i.setPublic(t, "10001");
              var o = i.encrypt(e);
              return (
                344 !== (o = At(Mt(o), 64)).length &&
                  n < 10 &&
                  (n++, (o = r(t, e))),
                (n = 0),
                o
              );
            };
          return r(t, e);
        }
        return e;
      })(u, a);
    return {
      _encrypted_key: c || "",
      _encrypted_data:
        ((e = a),
        (r = "object" == typeof (n = t) ? JSON.stringify(n) : n),
        (i = q.parse("ajyuo189n8nejoib")),
        (o = q.parse(e)),
        (s = q.parse(r)),
        J.encrypt(s, o, { iv: i, padding: U }).toString()) || "",
    };
  }
  function Rt(t) {
    return t instanceof ErrorEvent || t instanceof Error;
  }
  var Lt = function (t) {
      return !Rt(t);
    },
    Pt = function (t) {
      return Rt(t) && t.message !== o;
    },
    zt = function (t) {
      return Rt(t) && t.message === o;
    },
    Nt = function (t) {
      return "error" === rt(t);
    },
    Ht = "unknown",
    It = "",
    Jt =
      /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
    Vt =
      /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,
    qt =
      /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,
    Kt = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i,
    Ut = /\((\S*)(?::(\d+))(?::(\d+))\)/,
    Zt = /Minified React error #\d+;/i;
  function Wt(t, e) {
    var n = -1 !== t.indexOf("safari-extension"),
      r = -1 !== t.indexOf("safari-web-extension");
    return n || r
      ? [
          -1 !== t.indexOf("@") ? t.split("@")[0] : Ht,
          n ? "safari-extension:".concat(e) : "safari-web-extension:".concat(e),
        ]
      : [t, e];
  }
  function Xt(t) {
    var e = null == t ? void 0 : t.message;
    return e
      ? e.error && "string" == typeof e.error.message
        ? e.error.message
        : e
      : It;
  }
  function Qt(e, n) {
    try {
      return t(t({}, e), { stack: e.stack.slice(n) });
    } catch (t) {
      return e;
    }
  }
  function $t(t) {
    var e = null,
      n = 0;
    t &&
      ("number" == typeof t.framesToPop
        ? (n = t.framesToPop)
        : Zt.test(t.message) && (n = 1));
    try {
      if (
        ((e = (function (t) {
          if (!(null == t ? void 0 : t.stacktrace)) return null;
          for (
            var e,
              n = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,
              r =
                / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,
              i = t.stacktrace.split("\n"),
              o = [],
              s = 0;
            s < i.length;
            s += 2
          ) {
            var a = null;
            (e = n.exec(i[s]))
              ? (a = {
                  url: e[2],
                  func: e[3],
                  args: [],
                  line: +e[1],
                  column: null,
                })
              : (e = r.exec(i[s])) &&
                (a = {
                  url: e[6],
                  func: e[3] || e[4],
                  args: e[5] ? e[5].split(",") : [],
                  line: +e[1],
                  column: +e[2],
                }),
              a && (!a.func && a.line && (a.func = Ht), o.push(a));
          }
          return o.length ? { message: Xt(t), name: t.name, stack: o } : null;
        })(t)),
        e)
      )
        return Qt(e, n);
    } catch (t) {}
    try {
      if (
        ((e = (function (t) {
          var e, n;
          if (!(null == t ? void 0 : t.stack)) return null;
          for (
            var r, i, o, s = [], a = t.stack.split("\n"), c = 0;
            c < a.length;
            ++c
          ) {
            if ((i = Jt.exec(a[c]))) {
              var u = i[2] && 0 === i[2].indexOf("native");
              i[2] &&
                0 === i[2].indexOf("eval") &&
                (r = Ut.exec(i[2])) &&
                ((i[2] = r[1]), (i[3] = r[2]), (i[4] = r[3]));
              var f =
                i[2] && 0 === i[2].indexOf("address at ")
                  ? i[2].substr(11)
                  : i[2];
              (l = (e = Wt((l = i[1] || Ht), f))[0]),
                (o = {
                  url: (f = e[1]),
                  func: l,
                  args: u ? [i[2]] : [],
                  line: i[3] ? +i[3] : null,
                  column: i[4] ? +i[4] : null,
                });
            } else if ((i = qt.exec(a[c])))
              o = {
                url: i[2],
                func: i[1] || Ht,
                args: [],
                line: +i[3],
                column: i[4] ? +i[4] : null,
              };
            else {
              if (!(i = Vt.exec(a[c]))) continue;
              var l;
              i[3] && i[3].indexOf(" > eval") > -1 && (r = Kt.exec(i[3]))
                ? ((i[1] = i[1] || "eval"),
                  (i[3] = r[1]),
                  (i[4] = r[2]),
                  (i[5] = ""))
                : 0 !== c ||
                  i[5] ||
                  void 0 === t.columnNumber ||
                  (s[0].column = t.columnNumber + 1),
                (f = i[3]),
                (l = (n = Wt((l = i[1] || Ht), f))[0]),
                (o = {
                  url: (f = n[1]),
                  func: l,
                  args: i[2] ? i[2].split(",") : [],
                  line: i[4] ? +i[4] : null,
                  column: i[5] ? +i[5] : null,
                });
            }
            !o.func && o.line && (o.func = Ht), s.push(o);
          }
          return s.length ? { message: Xt(t), name: t.name, stack: s } : null;
        })(t)),
        e)
      )
        return Qt(e, n);
    } catch (t) {}
    return {
      message: Xt(t),
      name: null == t ? void 0 : t.name,
      stack: [],
      failed: !0,
    };
  }
  var Yt = function (e, n) {
    var r = e || {},
      o = r.type,
      s = void 0 === o ? "" : o,
      a = r.errorMessage,
      c = void 0 === a ? "" : a,
      u = r.meta,
      f = void 0 === u ? {} : u,
      l = r.errorType,
      h = void 0 === l ? "" : l,
      p = r.stack,
      d = void 0 === p ? [] : p,
      v = r.isFromPlugin,
      y = void 0 !== v && v,
      g = (function (t) {
        if (!t) return null;
        var e = null;
        if (t.config) {
          e = e || {};
          var n = t.config,
            r = n.method,
            i = n.url,
            o = n.data;
          (e.method = r), (e.url = i), (e.reqData = o);
        }
        t.response && ((e = e || {}), (o = t.response.data), (e.resData = o));
        return e;
      })(n);
    g && (f.errDetail = g);
    var m = { errorMessage: c, meta: f, errorType: h, stack: d };
    return {
      type: s,
      value: (m = (function (e) {
        var n = t({}, e);
        return (
          [10, 5].forEach(function (t) {
            JSON.stringify(n).length > i && n.stack.splice(t);
          }),
          n
        );
      })(m)),
      _kmonLogConf: { _isFromSdk: !0, _isFromPlugin: y, _isErrorLog: !0 },
    };
  };
  function Gt(t) {
    if (!t) return !1;
    if ("string" == typeof t) return s.test(t);
    if ("array" === rt(t) && t.length) {
      for (var e = !1, n = t.length - 1; n >= 0; n--) {
        var r = t[n];
        if (s.test((null == r ? void 0 : r.url) || "")) {
          e = !0;
          break;
        }
      }
      return e;
    }
    return !1;
  }
  function te(t) {
    return !(
      !t ||
      "string" !== rt(t) ||
      !W.some(function (e) {
        return -1 !== t.indexOf(e);
      })
    );
  }
  function ee(t) {
    return !(
      !t ||
      "string" !== rt(t) ||
      !X.some(function (e) {
        return -1 !== t.indexOf(e);
      })
    );
  }
  function ne(t) {
    var e,
      n = t.filename,
      r = t.message,
      i = t;
    t instanceof ErrorEvent && (i = t.error);
    var o = $t(i),
      s = o.stack,
      a = o.message,
      c = o.name,
      u = o.failed,
      f = n || (null === (e = s[0]) || void 0 === e ? void 0 : e.url),
      l =
        a ||
        r ||
        (function (t) {
          var e = "";
          for (var n in t)
            ("object" === rt(t[n]) && "function" === rt(t[n])) ||
              (e += "".concat(n, ": ").concat(t[n]));
          return e;
        })(t);
    return (
      !te(f) &&
      !ee(l) &&
      Yt({
        type: "badjs-js",
        errorMessage: l,
        stack: s,
        meta: { url: f, failed: u },
        errorType: c || "Error",
        isFromPlugin: Gt(s.length > 0 ? s : f),
      })
    );
  }
  function re(t) {
    var e = t.target;
    if (!e) return !1;
    var n = e.src,
      r = e.href,
      i = e.tagName,
      o = n || r;
    if (!o || o === window.location.href || te(o)) return !1;
    var s = { url: o, sourceType: i },
      a = i.toLowerCase();
    return (
      ("img" !== a && "image" !== a) ||
        (s.element = (function (t) {
          var e = t.src,
            n = t.tagName,
            r = t.id,
            i = t.className,
            o = [];
          return (
            i && o.push('class="'.concat(i, '"')),
            r && o.push('id="'.concat(r, '"')),
            e && o.push('src="'.concat(e, '"')),
            "<".concat(n.toLowerCase(), " ").concat(o.join(" "), " />")
          );
        })(e)),
      Yt({
        type: "badjs-resource",
        errorMessage: "静态资源加载错误",
        errorType: "ResourceError",
        meta: s,
        isFromPlugin: Gt(o),
      })
    );
  }
  function ie(t) {
    var e,
      n,
      r = t.reason;
    if (Nt(r)) {
      var i = $t(r),
        o = i.stack,
        s = i.message,
        a = i.name,
        c = i.failed,
        u = null === (e = o[0]) || void 0 === e ? void 0 : e.url,
        f = s || JSON.stringify(t);
      if (te(u) || ee(f)) return !1;
      n = Yt(
        {
          type: "badjs-promise",
          errorType: a,
          stack: o,
          errorMessage: f,
          meta: { url: u, failed: c },
          isFromPlugin: Gt(o.length > 0 ? o : u),
        },
        r
      );
    } else {
      if ("true" === r || !0 === r || !r) return !1;
      if (ee(JSON.stringify(r))) return !1;
      n = Yt({
        type: "badjs-promise",
        errorType: "Unhandledrejection",
        errorMessage: r || JSON.stringify(t),
      });
    }
    return n;
  }
  function oe(t) {
    var e = t.message,
      n = t.type;
    if (ee(e)) return !1;
    var r = Yt({
      type: "badjs-cors",
      errorType: n,
      errorMessage: e,
      meta: {
        corsScripts: Array.prototype.slice
          .call(document.getElementsByTagName("script"))
          .reduce(function (t, e) {
            return (
              e.src &&
                0 !== e.src.indexOf("https://" + window.location.host) &&
                !e.getAttribute("crossorigin") &&
                t.push(e.src),
              t
            );
          }, []),
      },
    });
    return r;
  }
  var se = function (t) {
      var e = t.type,
        n = t.value,
        r = t._kmonLogConf;
      if ("badjs-js" === e && !r) {
        var i = Object.prototype.toString.call(n);
        if (
          "[object HTMLScriptElement]" === i ||
          "[object HTMLLinkElement]" === i
        )
          return null;
        var o = null;
        o = Nt(n)
          ? n
          : "object" == typeof n
          ? new Error(JSON.stringify(n))
          : new Error(n);
        var s = null;
        return (
          nt(o)
            ? (s = ie(o))
            : zt(o)
            ? (s = oe(o))
            : Lt(o)
            ? (s = re(o))
            : Pt(o) && (s = ne(o)),
          s
        );
      }
      return t;
    },
    ae = function (e, n) {
      var r,
        i = e || {},
        o = i.type,
        s = i.value,
        a = (n || {})._isFromSdk,
        c = (function (t, e) {
          var n,
            r = {},
            i = {},
            o = e || {},
            s = o._isFromPlugin,
            a = o._isFromSdk;
          if (null != t) {
            var c = rt(t);
            if (a)
              "number" === c && (r = { value: parseFloat(t.toFixed(2)) }),
                (r.content = JSON.stringify(t));
            else if ("object" === c) {
              var u = Object.keys(t).reduce(function (e, n) {
                return (e[n] = it(t[n])), e;
              }, {});
              r.dynamic = u;
            } else r.dynamic = (((n = {})._kmonDynamic = it(t)), n);
          }
          return (
            s && (i = { from: "plugin" }),
            (null === window || void 0 === window ? void 0 : window.wpsQuery) &&
              (i.other_ua = "wpsQuery"),
            { value: r, _sdkparams: i }
          );
        })(s, n),
        u = c.value,
        f = c._sdkparams;
      return t(
        {
          url:
            (null ===
              (r =
                null === window || void 0 === window
                  ? void 0
                  : window.location) || void 0 === r
              ? void 0
              : r.href) || "",
          _sdkparams: f,
          log_id: G(8),
          type: a ? o : "".concat("kmon", "-").concat(o),
        },
        u
      );
    };
  function ce(t) {
    window.addEventListener("beforeunload", t, !0);
  }
  function ue(t, e) {
    var n = function (r) {
      ("pagehide" !== r.type && "hidden" !== document.visibilityState) ||
        (t(),
        e &&
          (window.removeEventListener("visibilitychange", n, !0),
          window.removeEventListener("pagehide", n, !0)));
    };
    window.addEventListener("visibilitychange", n, !0),
      window.addEventListener("pagehide", n, !0);
  }
  function fe(t) {
    var e = t.dsn,
      r = n[void 0 === e ? "" : e];
    return r && r.cache ? r.cache : [];
  }
  function le(t, e) {
    var r = e.dsn,
      i = n[void 0 === r ? "" : r];
    if (i) {
      i.cache || (i.cache = []);
      var o = i.cache,
        s = void 0 === o ? [] : o;
      s.find(function (e) {
        return Y(e, t);
      }) || s.push(t);
    }
  }
  function he(t, e, n) {
    if ((void 0 === t && (t = []), void 0 === e && (e = {}), t.length)) {
      var r = e.sampleType,
        i = void 0 === r ? "" : r,
        o = e.isPageHide,
        s = void 0 !== o && o,
        a = Ft({ events: t }),
        c = a._encrypted_key,
        u = void 0 === c ? "" : c,
        f = a._encrypted_data,
        l = void 0 === f ? "" : f;
      if (!u || !l) return void console.error("【monjs】加密失败，此日志丢弃");
      var h = n.dsn,
        p = void 0 === h ? "" : h,
        d = "".concat(u, "|").concat(l),
        v = ot(p, i);
      if (
        s &&
        (function () {
          var t,
            e = Q.some(function (t) {
              var e;
              return new RegExp(t, "ig").test(
                null ===
                  (e =
                    null === window || void 0 === window
                      ? void 0
                      : window.navigator) || void 0 === e
                  ? void 0
                  : e.userAgent
              );
            });
          return (
            !!(null === (t = window.navigator) || void 0 === t
              ? void 0
              : t.sendBeacon) && !e
          );
        })()
      ) {
        window.navigator.sendBeacon.bind(window.navigator)(v, d);
      } else {
        var y = new XMLHttpRequest();
        y && (y.open && y.open("post", v), y.send && y.send(d));
      }
    }
  }
  function pe(t, e) {
    void 0 === e && (e = !1);
    var r = fe(t);
    if (r.length) {
      var i = (function (t, e, n) {
        if (n || 2 === arguments.length)
          for (var r, i = 0, o = e.length; i < o; i++)
            (!r && i in e) ||
              (r || (r = Array.prototype.slice.call(e, 0, i)), (r[i] = e[i]));
        return t.concat(r || Array.prototype.slice.call(e));
      })([], r, !0);
      !(function (t) {
        var e = t.dsn;
        n[void 0 === e ? "" : e].cache = [];
      })(t),
        window.requestIdleCallback
          ? window.requestIdleCallback(function () {
              he(i, { isPageHide: e }, t);
            })
          : setTimeout(function () {
              he(i, { isPageHide: e }, t);
            });
    }
  }
  function de(e, o, s) {
    var u = t({}, e),
      f = (o || {})._isErrorLog,
      l = void 0 !== f && f,
      h = s.dsn,
      p = t(t({}, n[h].getConfig()), { logs: [u] }),
      d = u.content;
    if ((void 0 === d ? "" : d).length > i) {
      console.error("【monjs】日志过长只截取前".concat(i, "个字符上报"));
      var v = p.logs[0];
      return (
        (v.content = v.content.substring(0, i)),
        v._sdkparams && (v._sdkparams.is_cut = a),
        void he([p], {}, s)
      );
    }
    l
      ? he([p], { sampleType: c }, s)
      : (le(p, s),
        (function (t) {
          fe(t).length >= r && pe(t);
        })(s));
  }
  function ve(t, n) {
    if ($(t)) {
      var r = se(t);
      if (r) {
        var i = r._kmonLogConf,
          o = e(r, ["_kmonLogConf"]);
        de(ae(o, i), i, n);
      }
    }
  }
  var ye = (function () {
      function t() {
        this.timer = null;
      }
      return (
        (t.prototype.init = function (t) {
          this.setIntervalSendReport(t),
            [ce, ue].forEach(function (e) {
              e &&
                e(function () {
                  var e,
                    r,
                    i = t.dsn;
                  null ===
                    (r =
                      null === (e = n[void 0 === i ? "" : i]) || void 0 === e
                        ? void 0
                        : e.eventState) ||
                    void 0 === r ||
                    r.clear(),
                    pe ? pe(t, !0) : console.error("【monjs】自动上报失败");
                });
            }),
            [ce].forEach(function (e) {
              e &&
                e(function () {
                  !(function (t) {
                    var e = t.dsn,
                      r = void 0 === e ? "" : e,
                      i = n[r].poLists;
                    (void 0 === i ? [] : i).forEach(function (t) {
                      t && t.disconnect();
                    }),
                      (n[r].poLists = []);
                  })(t);
                });
            });
        }),
        (t.prototype.setIntervalSendReport = function (t) {
          clearInterval(this.timer),
            (this.timer = setInterval(function () {
              pe(t);
            }, 1e4));
        }),
        t
      );
    })(),
    ge = function (t, e) {
      try {
        var n = new Error(t),
          r = $t(n),
          i = r.stack,
          o = r.message,
          s = r.name,
          a = Yt({
            type: "badjs-monjs",
            errorMessage: o,
            stack: i,
            errorType: s,
            isFromPlugin: !1,
          });
        n.cause && (a.value.meta.cause = n.cause), ve(a, e);
      } catch (t) {
        console.error("【monjs】mon-track-error", t);
      }
    },
    me = (function () {
      function t(t) {
        (this.contextConfig = { dsn: "" }),
          (this.errorCollectionObj = {}),
          (this.contextConfig = t);
      }
      return (
        (t.prototype.init = function () {
          try {
            this._initJsError(),
              this._initResourceError(),
              this._initPromiseError(),
              this._initCorsJsError();
          } catch (t) {
            ge(t, this.contextConfig);
          }
        }),
        (t.prototype._initJsError = function () {
          var t = this;
          window.addEventListener("error", function (e) {
            try {
              if (!Pt(e)) return;
              var n = ne(e);
              n && t.reportError(n);
            } catch (e) {
              ge(e, t.contextConfig);
            }
          });
        }),
        (t.prototype._initResourceError = function () {
          var t = this;
          window.addEventListener(
            "error",
            function (e) {
              try {
                if (!Lt(e)) return;
                var n = re(e);
                n && t.reportError(n);
              } catch (e) {
                ge(e, t.contextConfig);
              }
            },
            !0
          );
        }),
        (t.prototype._initPromiseError = function () {
          var t = this;
          window.addEventListener("unhandledrejection", function (e) {
            try {
              var n = ie(e);
              n && t.reportError(n);
            } catch (e) {
              ge(e, t.contextConfig);
            }
          });
        }),
        (t.prototype._initCorsJsError = function () {
          var t = this;
          window.addEventListener("error", function (e) {
            try {
              if (!zt(e)) return;
              var n = oe(e);
              n && t.reportError(n);
            } catch (e) {
              ge(e, t.contextConfig);
            }
          });
        }),
        (t.prototype.reportError = function (t) {
          this.isFilterRepeatErrorData(t, this.contextConfig) &&
            ve(t, this.contextConfig);
        }),
        (t.prototype.isFilterRepeatErrorData = function (t, e) {
          var n;
          try {
            if (
              null === (n = null == t ? void 0 : t.value) || void 0 === n
                ? void 0
                : n.errorMessage
            ) {
              var r = it(t.value.errorMessage);
              if (r) {
                var i = r.substring(0, 300);
                if (this.errorCollectionObj[i]) {
                  if (this.errorCollectionObj[i] > 200) return !1;
                  this.errorCollectionObj[i] += 1;
                } else this.errorCollectionObj[i] = 1;
              }
              return !0;
            }
            return !0;
          } catch (t) {
            return ge(t, e), !0;
          }
        }),
        t
      );
    })(),
    we = (function () {
      function e(e) {
        var r = this;
        (this.contextConfig = { dsn: "" }),
          (this.timer = null),
          (this.pt = function () {
            clearTimeout(r.timer),
              (r.timer = setTimeout(function () {
                var e,
                  i,
                  o,
                  s,
                  a =
                    (null ===
                      (o =
                        null ===
                          (i = (e = window.performance).getEntriesByType) ||
                        void 0 === i
                          ? void 0
                          : i.call(e, "navigation")) || void 0 === o
                      ? void 0
                      : o.length) > 0
                      ? window.performance.getEntriesByType("navigation")[0]
                      : window.performance.timing,
                  c = a.redirectEnd,
                  u = a.redirectStart,
                  f = a.domainLookupEnd,
                  l = a.domainLookupStart,
                  h = a.connectEnd,
                  p = a.connectStart,
                  d = a.responseStart,
                  v = a.fetchStart,
                  y = a.responseEnd,
                  g = a.requestStart,
                  m = a.secureConnectionStart,
                  w = a.domInteractive,
                  _ = a.domContentLoadedEventEnd,
                  b = a.loadEventEnd,
                  x = y - v;
                try {
                  var E =
                    null === (s = window.performance) || void 0 === s
                      ? void 0
                      : s.getEntriesByType("paint");
                  if (null == E ? void 0 : E.length) {
                    var S = E.find(function (t) {
                      return "first-paint" === t.name;
                    });
                    S && (x = S.startTime);
                  }
                } catch (t) {}
                var C = [
                  { type: "redirectDuration", value: c - u },
                  { type: "dnsConnectDuration", value: f - l },
                  { type: "tcpConnectDuration", value: h - p },
                  { type: "ttfbDuration", value: d - v },
                  { type: "fpDuration", value: x },
                  { type: "downContentDuration", value: y - d },
                  { type: "requestDuration", value: y - g },
                  { type: "sslDuration", value: h - (m > 0 ? m : h) },
                  { type: "domParseDuration", value: w - y },
                  { type: "domContentLoadDuration", value: _ - v },
                  { type: "ttiDuration", value: w - v },
                  { type: "firstByteDuration", value: d - l },
                  { type: "loadDuration", value: b - v },
                  { type: "resourceDuration", value: b - _ },
                ].reduce(function (t, e) {
                  var n = e.value;
                  if ("number" != typeof n || n < 0 || n > 1e5) return t;
                  var r = parseFloat(n.toFixed(2)),
                    i = (function (t, e) {
                      var n;
                      return {
                        type: "performance-".concat(t),
                        content: e.toString(),
                        value: e,
                        _sdkparams: {},
                        url:
                          (null ===
                            (n =
                              null === window || void 0 === window
                                ? void 0
                                : window.location) || void 0 === n
                            ? void 0
                            : n.href) || "",
                        log_id: G(),
                      };
                    })(e.type, r);
                  return t.push(i), t;
                }, []);
                !(function (e, r, i) {
                  if (
                    (void 0 === r && (r = {}),
                    e.every(function (t) {
                      return $(t);
                    }))
                  ) {
                    var o = i.dsn;
                    he(
                      [t(t({}, n[o].getConfig()), { logs: e })],
                      { sampleType: r.sampleType },
                      i
                    );
                  }
                })(C, { sampleType: "performance" }, r.contextConfig);
              }, 5e3));
          }),
          (this.contextConfig = e);
      }
      return (
        (e.prototype.init = function () {
          window.performance &&
            ("complete" === document.readyState
              ? this.pt()
              : window.addEventListener("DOMContentLoaded", this.pt, {
                  once: !0,
                }));
        }),
        e
      );
    })(),
    _e = (function () {
      function t(t) {
        (this.contextConfig = { dsn: "" }), (this.contextConfig = t);
      }
      return (
        (t.prototype.init = function () {
          try {
            this.initPerformanceTiming();
          } catch (t) {
            ge(t, this.contextConfig);
          }
        }),
        (t.prototype.initPerformanceTiming = function () {
          new we(this.contextConfig).init();
        }),
        t
      );
    })(),
    be = (function () {
      function t(t) {
        (this.capacity = t), (this.elements = []);
      }
      return (
        (t.prototype.push = function (t) {
          this.elements.length >= this.capacity && this.elements.shift(),
            this.elements.push(t);
        }),
        (t.prototype.getElements = function () {
          return this.elements;
        }),
        (t.prototype.getLastEvent = function () {
          return this.elements[this.elements.length - 1];
        }),
        (t.prototype.clear = function () {
          this.elements = [];
        }),
        t
      );
    })(),
    xe = function (t, e, r) {
      try {
        if ("PerformanceObserver" in window) {
          var i = window.PerformanceObserver;
          if (i && -1 !== (i.supportedEntryTypes || []).indexOf(t)) {
            var o = new i(function (t) {
              Promise.resolve()
                .then(function () {
                  e(t.getEntries());
                })
                .catch(function (t) {
                  ge(t, r);
                });
            });
            return (
              o.observe({ entryTypes: [t] }),
              (function (t, e) {
                var r = e.dsn,
                  i = n[void 0 === r ? "" : r];
                i && (i.poLists || (i.poLists = []), i.poLists.push(t));
              })(o, r),
              o
            );
          }
        }
      } catch (t) {
        ge(t, r);
      }
      return null;
    };
  function Ee(t) {
    return t
      .reverse()
      .filter(function (t) {
        return t !== document && t !== window;
      })
      .map(function (t) {
        var e = t.id,
          n = t.nodeName,
          r = t.className;
        return e
          ? "".concat(null == n ? void 0 : n.toLowerCase(), "#").concat(e)
          : r && "string" == typeof r
          ? "".concat(null == n ? void 0 : n.toLowerCase(), ".").concat(r)
          : null == n
          ? void 0
          : n.toLowerCase();
      })
      .join("|");
  }
  function Se(t) {
    var e = t;
    if (Array.isArray(e)) return Ee(e);
    for (var n = []; e; ) n.push(e), (e = e.parentNode);
    return Ee(n);
  }
  var Ce = [5, 10],
    De = Ce[0],
    ke = Ce[1];
  function Be(t) {
    !(function (t) {
      try {
        var e = t.dsn,
          r = void 0 === e ? "" : e;
        ["click", "touchend"].forEach(function (t) {
          document.addEventListener(
            t,
            function (t) {
              var e, i, o;
              try {
                for (var s = t.target, a = !1; s instanceof Element; ) {
                  if (
                    null === (e = null == s ? void 0 : s.classList) ||
                    void 0 === e
                      ? void 0
                      : e.contains("weboffice-micro-app")
                  )
                    return void (a = !0);
                  s = s.parentElement;
                }
                if (a) return;
                null ===
                  (o =
                    null === (i = n[r]) || void 0 === i
                      ? void 0
                      : i.eventState) ||
                  void 0 === o ||
                  o.push(t);
              } catch (t) {}
            },
            { capture: !0, passive: !0 }
          );
        });
      } catch (t) {}
    })(t);
    try {
      xe(
        "longtask",
        function (e) {
          e.forEach(function (e) {
            var r,
              i,
              o,
              s = e.name,
              a = e.duration,
              c = (function (t, e) {
                var r = e.dsn,
                  i = n[void 0 === r ? "" : r].eventState,
                  o = function (e) {
                    return i.getElements().find(function (n) {
                      return (function (t, e, n) {
                        var r = t.timeStamp;
                        return r < e && r + n >= e;
                      })(n, t, e);
                    });
                  },
                  s = o(De);
                return s
                  ? { event: s }
                  : { event: o(ke) } || {
                      event: i.getLastEvent(),
                      isCorrect: !1,
                    };
              })(e.startTime, t),
              u = c.event,
              f = c.isCorrect;
            if (a > 200 && u && "self" === s) {
              var l = t.dsn;
              null ===
                (i =
                  null === (r = n[void 0 === l ? "" : l]) || void 0 === r
                    ? void 0
                    : r.eventState) ||
                void 0 === i ||
                i.clear();
              var h = {
                name: s,
                eventType: u.type,
                duration: new Date(a).getTime(),
                selector: u ? Se(u.path || u.target) : "",
                meta: { isCorrect: f },
              };
              ve(
                ((o = h),
                {
                  type: "collection-".concat("longtask"),
                  value: o,
                  _kmonLogConf: { _isFromSdk: !0 },
                }),
                t
              );
            }
          });
        },
        t
      );
    } catch (e) {
      ge(e, t);
    }
  }
  var Te = (function () {
      function t(t, e) {
        (this.contextConfig = { dsn: "" }),
          (this.option = { isEnableReport: !1 }),
          (this.option = t),
          (this.contextConfig = e);
      }
      return (
        (t.prototype.initEvent = function () {
          var t,
            e = this,
            r = this.option,
            i = r.isEnableError,
            o = void 0 !== i && i,
            s = r.isEnablePerformance,
            a = void 0 !== s && s,
            c = r.isEnableLongTask,
            u = void 0 !== c && c;
          o && new me(this.contextConfig).init();
          a && new _e(this.contextConfig).init();
          if (u) {
            var f = this.contextConfig.dsn,
              l = void 0 === f ? "" : f;
            n[l] && (n[l].eventState = new be(15)), Be(this.contextConfig);
          }
          (null === (t = window.__MONJSPRECOLLECT__) || void 0 === t
            ? void 0
            : t.length) &&
            (window.__MONJSPRECOLLECT__.forEach(function (t) {
              ve({ type: "badjs-js", value: t }, e.contextConfig);
            }),
            (window.__MONJSPRECOLLECT__ = [])),
            new ye().init(this.contextConfig);
        }),
        t
      );
    })(),
    Oe = (function () {
      function n() {
        var t, e, n, r, i;
        (this.dsn = ""),
          (this.config = {
            userid: "",
            ver:
              ((e = new Date()),
              (n = e.getFullYear()),
              (r = e.getMonth() + 1),
              (i = e.getDate()),
              r >= 1 && r <= 9 && (r = "0" + r),
              i >= 0 && i <= 9 && (i = "0" + i),
              "".concat(n, "-").concat(r, "-").concat(i)),
            sdkver: "1.18.0",
            env: "kdocs",
            ua:
              null ===
                (t =
                  null === window || void 0 === window
                    ? void 0
                    : window.navigator) || void 0 === t
                ? void 0
                : t.userAgent,
            referer: "",
            fileid: "",
            corpid: "",
          });
      }
      return (
        (n.prototype.init = function (n) {
          var r = n.dsn,
            i = e(n, ["dsn"]);
          (this.dsn = r), (this.config = t(t({}, this.config), i));
        }),
        (n.prototype.setDsn = function (t) {
          void 0 === t && (t = ""), (this.dsn = t);
        }),
        (n.prototype.getDsn = function () {
          return this.dsn;
        }),
        (n.prototype.setConfig = function (t) {
          for (var e in (void 0 === t && (t = {}), this.config)) {
            var n = t[e];
            null != n &&
              (this.config[e] = "string" == typeof n ? n : JSON.stringify(n));
          }
        }),
        (n.prototype.getConfig = function () {
          return t(
            t(
              {},
              (function (e) {
                var n = t({}, e);
                for (var r in n)
                  n.hasOwnProperty(r) &&
                    "string" != typeof n[r] &&
                    (n[r] = String(n[r]));
                return n;
              })(this.config)
            ),
            { time: Date.now().toString() }
          );
        }),
        n
      );
    })(),
    je = (function () {
      function e(e, r) {
        if (
          ((this.option = { isEnableReport: !1 }),
          (this.dsn = ""),
          (this.option = t(t({}, this.option), r)),
          tt(this.option))
        )
          console.error("【monjs】SDK功能已关闭");
        else {
          var i = e.dsn,
            o = void 0 === i ? "" : i;
          if (
            (void 0 === (s = o) && (s = ""),
            (s && "number" != typeof s && !(s.indexOf("http") < 0)) ||
              (console.error("【monjs】请设置正确的dsn参数，初始化失败"), 0))
          ) {
            var s;
            this.dsn = o;
            var a = new Oe();
            a.init(e),
              a.setDsn(o),
              (n[o] = a),
              new Te(this.option, { dsn: o }).initEvent();
          }
        }
      }
      return (
        (e.prototype.setConfig = function (t) {
          var e;
          !tt(this.option) &&
            this.dsn &&
            (null === (e = n[this.dsn]) || void 0 === e || e.setConfig(t));
        }),
        (e.prototype.kmon = function (t) {
          !tt(this.option) && this.dsn && ve(t, { dsn: this.dsn });
        }),
        e
      );
    })();
  return je;
});
